package com.example.lishop.entity.bean;

import javax.validation.constraints.Min;

/**
 * 分页请求参数基类
 */
public class BaseListBean extends BaseBean{

    @Min(value = 0, message = "page最小值为0")
    private int page = 0;
    @Min(value = 1, message = "size最小值为1")
    private int size = 20;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
